

# [：闭区间
# ):开区间
for i in range(1, 11):
    print(i)

# 打印10以内的奇数
for x in range(1, 11, 2):
    # print(i)
    # if i % 2 == 1:
    if x % 2:
        print(x)


# range => [1,2,3,4,5,6,7,8,9,10]
# i = 1 : ifxxx
# i = 2 : ifxx
# i = 3 : ifxx


for x in range(1, 11, 2):
    # print(i)
    # if i % 2 == 1:
    if x % 2:
        print(x)
    else:
        print('nodata')
    # break
else:
    print("finish")



# 打印九九乘法表
for i in range(1, 10): # 1,2,3,4,5,6,7,8,9
    for j in range(1, i+1): # 1->
        # print(j, '*', i, '=', j*i, end=' ', sep='')
        print("{j}*{i}={result}".format(i=i, j=j, result=i*j), end=' ')
    print() # => \n


for i in "abcdefg":
    print(i)